package com.richman.view;

import java.awt.BorderLayout;
import java.util.Vector;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.richman.ps38.entity.Event;
import com.richman.ps38.entity.HGEvent;

public class TeamMatchWindowPane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 111L;
	
	public TeamMatchWindowPane(){
        intiComponent();  
      
	}
	
	

	
	
	private JTabbedPane jTabbedpane = new JTabbedPane();// ���ѡ������  


	HGPS38TeamMatchPane hgps38TeamMatchPane = new HGPS38TeamMatchPane();
	
	
	
	


    private void intiComponent()  
    {  

		
		
		setLayout(new BorderLayout());
		

		add(jTabbedpane);  
		
		jTabbedpane.add(hgps38TeamMatchPane,"SB & PS38");
		

        

        setBounds(100, 100, 1220, 630); 

    }


	public void updateTeamMatchHGTeams(Vector<HGEvent> hgevents){
		hgps38TeamMatchPane.updateHGTeams(hgevents);
	}


	public void updateTeamMatchPS38Teams(Vector<Event> ps38events) {
		hgps38TeamMatchPane.updatePS38Teams(ps38events);
	}
	

	public Vector<String[]> getHGPS38TeamsList(){
		return hgps38TeamMatchPane.getHGPS38TeamsList();
	}
	
	
}
